/*
 * @version: 1.0
 * @Author: zhl
 * @Date: 2021-12-08 13:27:29
 * @LastEditors: zhl
 * @LastEditTime: 2021-12-08 16:10:32
 * @Description: 串口交互报文管理
 */

#ifndef __SERIAL_PACKET_MANAGER_H__
#define __SERIAL_PACKET_MANAGER_H__


#include "SerialEI.h"



class SerialPacketManager
{
private:
    /* data */
public:
    int      c_token;
public:
    SerialPacketManager();
    ~SerialPacketManager();

    int get_serial_request_msg(std::string port, int req_id, SERIAL_PARAMS params, char *sendBuf, int buf_len, std::string &msg, uint32_t timeout=5000);
    int get_serial_response_msg(std::string &msg, char *recvBuf, int &recvBuf_len);
};




#endif/* __SERIAL_PACKET_MANAGER_H__ */